play (the) game

Translations
jouer le jeu
Definitions
To participate in an activity according to its rules or expected behaviors, often used metaphorically to mean conforming to social, professional, or political expectations in order to achieve success or avoid trouble.